Skip to content

Harden automatic SSO renewal - #407

Draft
cloudsmith-iduffy wants to merge 3 commits into
masterfrom
cloudsmith-iduffy-harden-sso-renewal
Draft

Harden automatic SSO renewal#407
cloudsmith-iduffy wants to merge 3 commits into
masterfrom
cloudsmith-iduffy-harden-sso-renewal

Conversation

@cloudsmith-iduffy

Copy link
Copy Markdown
Contributor

Summary

  • schedule SSO refresh from JWT expiry with clock-skew leeway and retry throttling
  • centralize renewal outcomes, refresh-token rotation recovery, and safe keyring persistence
  • preserve usable SSO tokens after transient failures while allowing rejected or expired sessions to fall through to other credential providers
  • skip automatic renewal for authentication commands and emit precise stderr warnings without bypassing normal API error rendering

Validation

  • pytest -q cloudsmith_cli/core/tests/test_sso.py cloudsmith_cli/core/tests/test_keyring.py cloudsmith_cli/core/tests/test_keyring_provider.py cloudsmith_cli/cli/tests/test_decorators.py
  • pre-commit run --files CHANGELOG.md cloudsmith_cli/cli/decorators.py cloudsmith_cli/cli/tests/test_decorators.py cloudsmith_cli/core/credentials/models.py cloudsmith_cli/core/credentials/providers/keyring_provider.py cloudsmith_cli/core/keyring.py cloudsmith_cli/core/sso.py cloudsmith_cli/core/tests/test_keyring.py cloudsmith_cli/core/tests/test_keyring_provider.py cloudsmith_cli/core/tests/test_sso.py

Stacked on #406.

@cloudsmith-iduffy
cloudsmith-iduffy force-pushed the cloudsmith-iduffy-harden-sso-renewal branch from 6724cf5 to fd9a17a Compare September 3, 2026 21:21
@cloudsmith-iduffy
cloudsmith-iduffy changed the base branch from cloudsmith-iduffy-remove-auth-token-flag to master September 3, 2026 21:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant